package com.lili.utilscommon.pwdmd5;

import org.apache.shiro.crypto.hash.SimpleHash;

public class MD5utils {
    /**
     * 密码加密
     * @param source
     * @param salt
     * @return
     */
    public static String md5Encrtytion(String source,String salt){

        /*加密算法*/
        String algorithmName = "MD5";
        /*加密次数*/
        int hashIterations = 1024;
        SimpleHash simpleHash = new SimpleHash(algorithmName,source,salt,hashIterations);
        return simpleHash+"";

    }
}
